import {NgModule} from "@angular/core";
import {CommonModule} from "@angular/common";
import {ReactiveFormsModule, FormsModule} from "@angular/forms";
import {
  MdInputModule,
  MdAutocompleteModule,
  MdCheckboxModule,
  MdRadioModule,
  MdSelectModule,
  MdSliderModule, MdSlideToggleModule
} from "@angular/material";
import {AutocompleteComponent} from "./autocomplete/autocomplete.component";
import {CheckboxComponent} from "./checkbox/checkbox.component";
import {InputComponent} from "./input/input.component";
import {RadioComponent} from "./radio/radio.component";
import {SelectComponent} from "./select/select.component";
import {SliderComponent} from "./slider/slider.component";
import {SlideToggleComponent} from "./slidetoggle/slidetoggle.component";

const components = [
  AutocompleteComponent,
  CheckboxComponent,
  InputComponent,
  RadioComponent,
  SelectComponent,
  SliderComponent,
  SlideToggleComponent
]

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    MdInputModule,
    MdAutocompleteModule,
    MdCheckboxModule,
    MdRadioModule,
    MdSelectModule,
    MdSliderModule,
    MdSlideToggleModule
  ],
  declarations: [
    ...components
  ],
  exports: [
    ...components
  ]
})
export class ControlsModule {
}
